﻿using System;
using System.Diagnostics;
using System.Globalization;
using System.Resources;

namespace Globsite.Globalization.Mvc.DbResources
{
    public class DbResourceSet : ResourceSet
    {
        public DbResourceSet(string baseName, CultureInfo cultureInfo)
            : base(new DbResourceReader(baseName, cultureInfo))
        {
            Debug.WriteLine("DbResourceSet.DbResourceSet({0}, {1})", baseName, cultureInfo);
        }

        public override Type GetDefaultReader()
        {
            Debug.WriteLine("DbResourceSet.GetDefaultReader()");

            return typeof(DbResourceReader);
        }

        public override Type GetDefaultWriter()
        {
            Debug.WriteLine("DbResourceSet.GetDefaultWriter()");

            return typeof(DbResourceWriter);
        }
    }
}
